using TrueCode.Core.EditableEntity;

namespace TrueCode.Core.Tests.EditableEntity
{
  public class Entity
  {
    private readonly string _name;

    public Entity( int id, string name, string title )
    {
      Id = id;
      _name = name;
      Title = title;
    }

    [Editable(EditableMode.Updatable)]
    public int Id{ get; set; }

    [Editable(EditableMode.ReadOnly)]
    public string Name{ get { return _name;  } }
    [Editable]
    public string Title{ get; set; }

  }
}